import BasicLayout from '@/components/main/main'

const meta = {
    auth: true
};

const pre = 'home_';

export default {
    path: '/',
    name: 'home',
    header: 'home',
    redirect: {
        name: `${pre}index`
    },
    meta,
    component: BasicLayout,
    children: [
        {
            path: 'home/home/',
            name: `${pre}index`,
            header: 'home',
            meta: {
                auth: ['admin-index-index'],
                title: '首页',
                affix: true,
            },
            component: () => import('@/views/index/index')
        },
        {
            path: 'home/order',
            name: `${pre}order`,
            header: 'order',
            meta: {
                auth: ['admin-order-data'],
                title: '预约订单',
                affix: true,
            },
            component: ()=> import('@/views/order/data')
        },
        {
            path: 'home/orderbox',
            name: `${pre}orderbox`,
            header: 'order',
            meta: {
                auth: ['admin-order-data'],
                title: '回收箱订单',
                affix: true,
            },
            component: ()=> import('@/views/order/databox')
        },
        {
            path: 'home/account',
            name: `${pre}account`,
            header: 'account',
            meta: {
                auth: ['admin-account-index'],
                title: '账户设置',
                affix: true,
            },
            component: ()=> import('@/views/account/index')
        },
        {
            path: 'home/staff',
            name: `${pre}staff`,
            header: 'staff',
            meta: {
                auth: ['admin-staff-list'],
                title: '员工列表',
                affix: true,
            },
            component: ()=> import('@/views/staff/list')
        },
        {
            path: 'home/user',
            name: `${pre}user`,
            header: 'user',
            meta: {
                auth: ['admin-system-user'],
                title: '个人中心',
                affix: true,
            },
            component: ()=> import('@/views/user/index')
        }


    ]
}
